import request from '@/util/request'

// 管理员查询
export const getAdminAPI = (params) => {
  return request.get('/admin/admin', { params })
}

// 管理员添加
export const addAdminAPI = (data) => {
  return request.post('/admin/admin', data)
}

// 管理员更新
export const updateAdminAPI = (data) => {
  return request.put('/admin/admin', data)
}

// 管理员删除
export const deleteAdminAPI = (params) => {
  return request.delete('/admin/admin', { params })
}
